from django.contrib import admin
from account.models import User

# Register your models here.
class UserAdmin(admin.ModelAdmin):
    # 配置展示列表
    list_display = ('id','username','email')
    # 新增，配置过滤字段
    list_filter = ('username', 'email')
    # 新增，配置搜索信息
    search_fields = ('username', 'email')


admin.site.register(User, UserAdmin)